package com.second.hand.trading.server.dao;

import com.second.hand.trading.server.domain.Intergral;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface IntergralMapper {
    int incrAccount(String phone);

    Intergral getByPhone(String phone);

    void insert(@Param("phone") String phone, @Param("amount") Long amount);

    int decr(@Param("phone") String phone, @Param("amount") Long amount);
}
